<div ng-include="'/modules/template/header.html'"></div>  
<div class="zc_box">
    <div class="container" ng-init="updateSuccessStep = 1">
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zc_top">
                <div class="col-lg-4 col-md-4 col-sm-3 col-xs-3"></div>
                <div class="col-lg-8 col-md-8 col-sm-9 col-xs-9 zc_main">
                    <div class="col-lg-5 col-md-5 col-sm-5 col-xs-6 zc_nav" ng-class="{'zc_active' : updateSuccessStep == 1}">
                        <a href="">
                            <span class="nav-1">1</span>
                            <span class="nav-2">密码重置</span>
                        </a>
                    </div>
                    <div class="col-lg-5 col-md-5 col-sm-5 col-xs-6 zc_nav zc_nav4" ng-class="{'zc_active' : updateSuccessStep == 2}">
                        <a href="">
                            <span class="nav-1">√</span>
                            <span class="nav-2">重置成功</span>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="zc_main_box">
    <div class="container">
        <div class="row">
            <form name="myForm">
	            <div class="buzhou" ng-class="{'buzhou-show' : updateSuccessStep == 1}">
	                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zc_main_1">
	                    <span class="nav-1">填写密码</span>
	                    <input type="password" name="updatePassword" ng-model="updatePassword" ng-pattern="/^[a-z0-9]*$/" ng-required="true" ng-minlength="6" maxlength="32">
	                    <div class="row" style="width: 258px;margin: 5px auto;margin-top: 15px;">
		                    <div ng-show="myForm.updatePassword.$dirty && myForm.updatePassword.$error.minlength"
		                             class="alert alert-danger help-block nav-1">
		                            不能少于6个字符
		                    </div>
		                    <div ng-show="myForm.updatePassword.$dirty && myForm.updatePassword.$error.required"
		                             class="alert alert-danger help-block nav-1">
		                            密码不能为空
		                    </div>
		                    <div ng-show="myForm.updatePassword.$dirty && myForm.updatePassword.$error.pattern"
		                                class="alert alert-danger help-block">
		                            密码是数字或字母
		                    </div>
	                    </div>
	                </div>
	                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zc_main_1">
	                    <span class="nav-1">确认密码</span>
	                    <input type="password" name="confUpdatePassword" ng-model="confUpdatePassword" ng-required="true" maxlength="32">
	                    <div class="row" style="width: 258px;margin: 5px auto;margin-top: 15px;">
	                        <div ng-show="myForm.confUpdatePassword.$dirty && (updatePassword !== confUpdatePassword)" class="alert alert-danger help-block">
	                            两次密码不一致
	                        </div>
	                    </div>
	                </div>
	                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zc_main_1" ng-class="{'zc_main_ac' : myForm.$valid && (updatePassword === confUpdatePassword)}">
	                    <button type="button" ng-click="nextUpdateSuccessStep()" ng-disabled="myForm.$invalid">保存</button>
	                </div>              
	            </div>
	        </form>
            <div class="buzhou" ng-class="{'buzhou-show' : updateSuccessStep == 2}">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zc_main_1">
                    <div class="yx-hua0" ng-if="forgetMessage.success">
                        <img src="/temp/images/sz-sc.png" style="margin-right:10px;" />
                        <span style="padding-left: 0;">密码重置成功</span>
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zc_main_1 zc_main_ac">
                            <a ng-click="goBackMain()">>>> 返回首页</a>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="yx-hua0" ng-if="!forgetMessage.success">
		                <img src="/temp/images/sz-er.png" style="margin-right:10px;" />
		                <span style="color: red; padding-left: 0;">密码重置失败</span>
		                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zc_main_1 zc_main_ac">
		                    <a ng-click="goBackMain()">>>> 返回首页</a>
		                </div>
		                <div class="clearfix"></div>
		            </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="clearfix"></div>
<div class="hei150"></div>
</html>
